/**
 * 
 */
package com.mywind.entity.core;

import java.util.List;

/**
 * @author a01513
 * @param id
 *            tree node id
 * @param text
 *            the tree node display text
 * @param href
 *            default value is "#node-1"
 * @param backColor
 *            default value is ""#FFFFFF"
 * @param color
 *            default value is "#000000"
 * @param icon
 *            default value is "glyphicon glyphicon-stop"
 * @param tags
 *            return a "[ '" + tags + " child elements' ]" value, eeg: tags="2"
 *            ,then return "[ '2 child elements' ]"
 * @param nodes
 *            the sub nodes of this tree node
 * 
 */
public class TreeEntity {

	private String id;
	private String text;
	private String href;
	private String backColor;
	private String color;
	private String icon;
	private List<Integer> tags;
	private List<TreeEntity> nodes;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = this.id + ":" + text;
	}

	public String getHref() {
		return href;
	}

	public void setHref(String href) {
		this.href = href;
	}

	public String getBackColor() {
		return backColor;
	}

	public void setBackColor(String backColor) {
		this.backColor = backColor;
	}

	public String getColor() {
		return color;
	}

	public void setColor(String color) {
			this.color = color;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public List<Integer> getTags() {
		return tags;
	}

	public void setTags(List<Integer> tags) {
		this.tags = tags;
	}

	public List<TreeEntity> getNodes() {
		return nodes;
	}

	public void setNodes(List<TreeEntity> nodes) {
		this.nodes = nodes;
	}
}
